//
//  SharingModel.m
//  PerfectWorld
//
//  Created by dllo on 16/9/20.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "SharingModel.h"
#import "SharingPhotosModel.h"
@implementation SharingModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"photos"]) {
        NSMutableArray<SharingPhotosModel *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            SharingPhotosModel * photos = [SharingPhotosModel modelWithDic:dic];
            [array addObject:photos];
        }
        _photos = array;
      }
}
@end
